package ph.loong.deliveryman.ui.notify

import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import deliveryman.loong.ph.deliveryman.R
import kotlinx.android.synthetic.main.activity_notify.*
import ph.loong.deliveryman.adapter.NotifyAdapter
import ph.loong.deliveryman.base.BaseActivity

//通知activity
class NotifyActivity : BaseActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_notify)
        setTitle("通知中心")
        setRightImg(resources.getDrawable(R.drawable.icon_trash))
        recycler.layoutManager = LinearLayoutManager(this)
        val adapter = NotifyAdapter()
        recycler.adapter = adapter

        val list:ArrayList<String> = ArrayList()
        list.add("notify1")
        list.add("notify2")
        adapter.setNewData(list)
    }
}
